package com.dmgis.hndz.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;

import lombok.Data;

/**
 * 模型配置表
 *
 * @TableName ybab02a
 */
@TableName(value = "ybab02a")
@Data
public class Ybab02a implements Serializable {
    /**
     * ID号
     */
    @TableField(value = "ybab02a010")
    private String ybab02a010;

    /**
     * 模型编号
     */
    @TableField(value = "ybab02a020")
    private String ybab02a020;

    /**
     * 因子大类
     */
    @TableField(value = "ybab02a030")
    private String ybab02a030;

    /**
     * 因子小类
     */
    @TableField(value = "ybab02a040")
    private String ybab02a040;

    /**
     * 因子值
     */
    @TableField(value = "ybab02a050")
    private String ybab02a050;

    /**
     * 行政区划
     */
    @TableField(value = "ybab02a060")
    private String ybab02a060;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Ybab02a other = (Ybab02a) that;
        return (this.getYbab02a010() == null ? other.getYbab02a010() == null : this.getYbab02a010().equals(other.getYbab02a010()))
                && (this.getYbab02a020() == null ? other.getYbab02a020() == null : this.getYbab02a020().equals(other.getYbab02a020()))
                && (this.getYbab02a030() == null ? other.getYbab02a030() == null : this.getYbab02a030().equals(other.getYbab02a030()))
                && (this.getYbab02a040() == null ? other.getYbab02a040() == null : this.getYbab02a040().equals(other.getYbab02a040()))
                && (this.getYbab02a050() == null ? other.getYbab02a050() == null : this.getYbab02a050().equals(other.getYbab02a050()))
                && (this.getYbab02a060() == null ? other.getYbab02a060() == null : this.getYbab02a060().equals(other.getYbab02a060()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getYbab02a010() == null) ? 0 : getYbab02a010().hashCode());
        result = prime * result + ((getYbab02a020() == null) ? 0 : getYbab02a020().hashCode());
        result = prime * result + ((getYbab02a030() == null) ? 0 : getYbab02a030().hashCode());
        result = prime * result + ((getYbab02a040() == null) ? 0 : getYbab02a040().hashCode());
        result = prime * result + ((getYbab02a050() == null) ? 0 : getYbab02a050().hashCode());
        result = prime * result + ((getYbab02a060() == null) ? 0 : getYbab02a060().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", ybab02a010=").append(ybab02a010);
        sb.append(", ybab02a020=").append(ybab02a020);
        sb.append(", ybab02a030=").append(ybab02a030);
        sb.append(", ybab02a040=").append(ybab02a040);
        sb.append(", ybab02a050=").append(ybab02a050);
        sb.append(", ybab02a060=").append(ybab02a060);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}
